<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/sms_riskI_script.js"></script>-->
</head>
<body onload="moveInsertPage('mvscore_insertPage','${requestScope.update }')">
<div class="box">
      		<h4 class="white">
      			<span class="align-left">취약성 점수 산정 기준</span>
	      		<span class="align-right">마감상태(취약성평가) :
		      		<c:choose>
		      			<c:when test="${sessionScope.magamSession[3].state =='Y'}">
		      				 마감
		      			</c:when>
		      			<c:otherwise>
		      				 착수
		      			</c:otherwise>
		      		</c:choose>
	      		</span>
      		</h4>
	 <div class="box-container2">
		 <form action="riskIAction.do" method="post" name="mvscore">
		 <input type="hidden" name="pro_id" id="pro_id" value="${sessionScope.lastProId }"></input>
	 		<c:choose>
				<c:when test="${requestScope.update=='Y' }">
					 <input type="hidden" name="mode" value="mvscore_update"></input>
					<input type="hidden" name="vp_id" id="insertNum" value="${requestScope.vo.vp_id }"></input>
				</c:when>
				<c:otherwise>
				    <input type="hidden" name="mode" value="mvscore_insert"></input>
				    <input type="hidden" name="vp_id" id="insertNum" value="${requestScope.maxNo }"></input>
				</c:otherwise>
			</c:choose>	
		 	<table class="insertTableL" >
	   			<tfoot>
	   				<tr>
	   					<td>
	                     	<div class="align-right">
	                     		<c:choose>
		                       		<c:when test="${sessionScope.magamSession[5].state !='Y'}">
		                       		<!-- 마감 현황이 유무 판별(Y 시 입력 불가) -->
		                       			<a href="#" class="button" onclick="riskIWrite('mvscore');return false;"><span>저장</span></a>
		                       		</c:when>
		                       		<c:otherwise>
		                       			<a href="#" class="button1 addMargin" onclick="return false;"><span>저장</span></a>
		                       		</c:otherwise>
		                       	</c:choose>
	                     	
	                     	<a href="#" class="button" onclick="javascript: riskICancleWrite('mvscore')"><span>닫기</span></a></div>
	                     </td>
	   				</tr>
	   			</tfoot>
	   		</table>
	   		<table class="insertTableL">
	   			<colgroup>
	   				<col width="110px"/>
	   				<col/>
	   			</colgroup>
	   			<tbody>
	   			<%--
	   				<tr>
	   					<td class="titleName">순번</td>
	   					<td>
	   						<c:choose>
									<c:when test="${requestScope.update=='Y' }">
										<input type="text" name="ascu_id" id="ascu_id" style="border:#bfbfbf 1px solid; background-color: #ffffff;" maxlength="4" size="4" value="${requestScope.vo.ascu_id }" readonly="readonly"></input>
									</c:when>
									<c:otherwise>
										<input type="text" name="ascu_id" id="ascu_id" style="IME-MODE: disabled; border:#bfbfbf 1px solid; background-color: #ffffff;" maxlength="4" size="4" value="${requestScope.maxNo }"  onKeyDown='evKey(event)'  onkeyup="inputCheckSpecial(this)"></input>
									</c:otherwise>
								</c:choose>	
						</td>
	   				</tr>
	   			 --%>
	   				<tr>
	   					<td class="titleName">취약성등급 <span class="red">＊</span></td>
	   					<td>
	   						<input type="text" name="v_level" id="v_level" maxlength="5" size="5" onkeyup="javascript: inputCheckSpecial(this)" value="${requestScope.vo.v_level}" ></input>
	   					</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">점수범위 <span class="red">＊</span></td>
	   					<td>
	   						<input type="text" name="vs_score" id="vs_score" style="IME-MODE: disabled;" maxlength="3" size="3" onkeydown='javascript: evKeyAndDot(event)'  onkeyup="javascript: inputCheckSpecial(this); javascript: DemicalCheck(this,1,1);" onblur="javascript: addDot(this)"value="${requestScope.vo.vs_score }"></input> ~
								<input type="text" name="vl_score" id="vl_score" style="IME-MODE: disabled;" maxlength="3" size="3" onkeydown='javascript: evKeyAndDot(event)'  onkeyup="javascript: inputCheckSpecial(this); javascript: DemicalCheck(this,1,1);" onblur="javascript: addDot(this)"value="${requestScope.vo.vl_score }"></input>
	   					</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">의미</td>
	   					<td>
	   						<input type="text" name="v_detail" id="v_detail"  maxlength="30" size="51" onkeyup="javascript: inputCheckSpecial(this)" value="${requestScope.vo.v_detail}" ></input>
	   					</td>
	   				</tr>
	   			</tbody>
	   		</table>
   		</form>
	</div>
</div>
</body>
</html>
